using System;
using Xunit;
using Pets;

namespace NewTypesTests
{
    public class UnitTest1
    {
        [Fact]
        public void Test1()
        {
            var expected=42;
            var actual=42;
            Assert.Equal(expected, actual);
        }
        [Fact]
        public void DogTalkToOwnerReturnsWoof()
        {
            string expected = "Woof!";
            string actual = new Dog().TalkToOwner();

            //先用反向条件确保每个都会错误，然后用正向条件
            //Assert.NotEqual(expected, actual);
            Assert.Equal(expected, actual);
        }

        [Fact]
        public void CatTalkToOwnerReturnsMeow()
        {
            string expected = "Meow!";
            string actual = new Cat().TalkToOwner();

            Assert.Equal(expected, actual);
        }

        [Fact]
        public void BirdTalkToOwnerReturnsTweeet()
        {
            string expected = "Tweet!";
            string actual = new Bird().TalkToOwner();

            Assert.Equal(expected, actual);
        }
    }
}
